/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package WebServices;

import Beans.Bebe;
import Logica.BebeXml;
import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author familia
 */
@WebService(serviceName = "WsBebe")
public class WsBebe {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "AgregarBebe")
    public int AgregarBebe(@WebParam(name = "bebe")
    Bebe bebe) {
        BebeXml xml = new BebeXml();
        //TODO write your implementation code here:
        return xml.AgregarBebe(bebe);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "EditarBebe")
    public boolean EditarBebe(@WebParam(name = "bebe")
    Bebe bebe) {
        BebeXml xml = new BebeXml();
        return xml.EditarBebe(bebe);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "ObtenerBebes")
    public List<Bebe> ObtenerBebes(@WebParam(name = "consulta")
    Bebe consulta) {
        BebeXml xml = new BebeXml();
        return xml.ObtenerBebes(consulta);
    }

}
